#include "qt_deneme.h"

qt_deneme::qt_deneme(QWidget *parent)
    : QWidget(parent)
{
	ui.setupUi(this);
	connect(ui.pushButton, SIGNAL(clicked()), this , SLOT(arttir()));
}

qt_deneme::~qt_deneme()
{

}

void qt_deneme::arttir()
{
	QString oncekisayi = ui.label->text();
	int counter = oncekisayi.toInt();
	counter++;
	QString yenitext;
	yenitext.setNum(counter);
	ui.label->setText(yenitext);
	
	//ui.label->setText(QString().number(counter));
	
	
}




